package com.atstudy.entites;

import lombok.ToString;

import java.util.Date;
import java.util.List;

@ToString
public class Order {

    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<OrderDetails> orderDetailsList;

    public List<OrderDetails> getOrderDetailsList() {
        return orderDetailsList;
    }

    public void setOrderDetailsList(List<OrderDetails> orderDetailsList) {
        this.orderDetailsList = orderDetailsList;
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.id
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Integer id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.order_no
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private String orderNo;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.order_status
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Integer orderStatus;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.order_amount
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Double orderAmount;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.order_paymode
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Integer orderPaymode;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.order_remark
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private String orderRemark;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.create_time
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.update_time
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order.user_id
     *
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    private Integer userId;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.id
     *
     * @return the value of order.id
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.id
     *
     * @param id the value for order.id
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.order_no
     *
     * @return the value of order.order_no
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.order_no
     *
     * @param orderNo the value for order.order_no
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.order_status
     *
     * @return the value of order.order_status
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Integer getOrderStatus() {
        return orderStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.order_status
     *
     * @param orderStatus the value for order.order_status
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.order_amount
     *
     * @return the value of order.order_amount
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Double getOrderAmount() {
        return orderAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.order_amount
     *
     * @param orderAmount the value for order.order_amount
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.order_paymode
     *
     * @return the value of order.order_paymode
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Integer getOrderPaymode() {
        return orderPaymode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.order_paymode
     *
     * @param orderPaymode the value for order.order_paymode
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setOrderPaymode(Integer orderPaymode) {
        this.orderPaymode = orderPaymode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.order_remark
     *
     * @return the value of order.order_remark
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public String getOrderRemark() {
        return orderRemark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.order_remark
     *
     * @param orderRemark the value for order.order_remark
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark == null ? null : orderRemark.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.create_time
     *
     * @return the value of order.create_time
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.create_time
     *
     * @param createTime the value for order.create_time
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.update_time
     *
     * @return the value of order.update_time
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.update_time
     *
     * @param updateTime the value for order.update_time
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order.user_id
     *
     * @return the value of order.user_id
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order.user_id
     *
     * @param userId the value for order.user_id
     * @mbg.generated Wed Feb 08 15:58:59 CST 2023
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}